package cn.jingyuan.swan.system.domain.sys.dao;

import cn.jingyuan.swan.cloud.dao.CrudDao;
import cn.jingyuan.swan.system.domain.sys.entity.Account;
import cn.jingyuan.swan.system.enums.SysAccountTypeEnum;

import java.util.List;

public interface UserAccountDao extends CrudDao<Account, Long> {

    int updatePassword(Long userId, List<SysAccountTypeEnum> accountTypes, String password);

    Account getBy(String account, SysAccountTypeEnum accountType);

    Account getByAccount(String account);

    List<Account> findByUserId(Long userId);

}
